package com.xiaoyun.org.util;

import java.io.File;

import android.os.Environment;

public class FileUtils {

	/**
	 * ��������Ŀ¼
	 * @return
	 */
	public File getFile (){
		// ��������Ŀ¼��ϵͳһ���о͵ô�������Ŀ¼�ģ�
		boolean sdCardExist = Environment.getExternalStorageState().equals(
				android.os.Environment.MEDIA_MOUNTED);
		String folderPath = "";
		if (sdCardExist) {
			folderPath = Environment.getExternalStorageDirectory()
					+ File.separator + "caches" + File.separator;
		} 
		File cache = new File(folderPath);
		if (!cache.exists()) {
			cache.mkdirs();
		}
		return cache;
	}

}
